const app = getApp()

Page({
  data: {
    userInfo: {},
    user: {},
    coupons: [],
    totalFee: {},
    deliveryFees: {},
    menu: [
      { id:1,name: '账户余额', image: '/images/money.png', describe: '88(元)', url: '/pages/user/balance/index' }, 
      { id: 2,name: '提取现金', image: '/images/getmoney.png', describe: '', url: '/pages/user/getMoney/getmoney' }, 
      { id: 3,name: '订单管理', image: '/images/order.png', describe: '', url: '/pages/user/order/index' },
      { id: 4,name: '个人信息', image: '/images/reg.png', describe: '', url: './userinfo/userinfo'}]

  },

  onLoad() {
    var that = this
    var userinfo=app.globalData.userInfo
    //调用应用实例的方法获取全局数据
    
    // console.log(userinfo)
      that.setData({
        userInfo: userinfo,
        loadingHidden: true
      })
    
  },

  onShow() {
    this.getUserInfo()
  },

  getUserInfo() {
    
  },

   

  

  
})